Skip to content

chore(ci): update all GitHub Actions to latest majors - #239

Merged
antosubash merged 2 commits into
mainfrom
chore/update-gh-actions
Aug 6, 2026
Merged

chore(ci): update all GitHub Actions to latest majors#239
antosubash merged 2 commits into
mainfrom
chore/update-gh-actions

Conversation

@antosubash

@antosubash antosubash commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Bumps every action used by pr.yml and release.yml to its current latest release.

Action Before After
actions/checkout v6 v7 (v7.0.1)
actions/setup-node v6 v7 (v7.0.0)
actions/cache v5 v6 (v6.1.0)
actions/upload-artifact v6 v7 (v7.0.1)
actions/download-artifact v7 v8 (v8.0.1)
astral-sh/setup-uv v8.0.0 v9.0.0
pypa/gh-action-pypi-publish @release/v1 unchanged — already the newest v1 (v1.14.2); no v2 exists

Floating-major pins kept for actions/* and the exact pin kept for setup-uv, matching the existing convention in these files.

Breaking changes, checked against actual usage

  • checkout v7 blocks checking out fork PRs under pull_request_target / workflow_run. Neither workflow uses those triggers (pr.yml is pull_request, release.yml is workflow_dispatch), so this is inert here.
  • setup-node v7 stops exporting the dummy NODE_AUTH_TOKEN placeholder. This helps the publish-npm job, which uses OIDC Trusted Publishing — the placeholder could previously pollute .npmrc during an OIDC publish.
  • download-artifact v8 now errors instead of warning on a digest mismatch, and skips decompressing non-zip downloads. Artifacts here are uploaded with the default archive: true, so they still unzip normally; the stricter digest check is a straight win.
  • cache v6 / upload-artifact v7 and the remainder of setup-node v7 are ESM migrations with no behavioural change for these call sites.

setup-uv v9: prune-cache now defaults to false

Left at the new default. Measured on this PR's run rather than guessed:

  • The flag is part of the cache key, so dropping -pruned- from it makes the first run a cold miss. All parallel jobs then race to populate the new key; one wins and the rest log ##[warning] Failed to save: Unable to reserve cache ... another job may be creating this cache. Benign, non-fatal (every job still passed, and the winner logged uv cache saved with key: ...), and it disappears once the key is warm.
  • Cache-size cost is negligible here: the new unpruned entry is ~1 MiB, against 0–11 MiB for the old pruned entries. The old pruned cache was frequently ~65 KiB — i.e. barely caching anything, which is exactly the waste upstream changed the default to fix.

No reason to override with prune-cache: true.

Verification

  • actionlint clean on both workflows (exit 0); both parse as YAML
  • All 12 CI checks pass on this PR, including the aggregate PR checks gate — run 31084586499. Since pr.yml is the file being changed, this run is the test.

Draft so you can eyeball it before marking ready.

https://claude.ai/code/session_01KzBTj2GWBXhG8gbTorDYjW

Bumps every action used by pr.yml and release.yml to its current
latest release:

  actions/checkout          v6      -> v7  (v7.0.1)
  actions/setup-node        v6      -> v7  (v7.0.0)
  actions/cache             v5      -> v6  (v6.1.0)
  actions/upload-artifact   v6      -> v7  (v7.0.1)
  actions/download-artifact v7      -> v8  (v8.0.1)
  astral-sh/setup-uv        v8.0.0  -> v9.0.0

pypa/gh-action-pypi-publish stays on @release/v1 — that's the moving
ref upstream recommends and it already resolves to the newest v1
(v1.14.2); there is no v2.

Breaking changes reviewed against actual usage — none bite:

- checkout v7 blocks checking out fork PRs under `pull_request_target`
  / `workflow_run`. Neither workflow uses those triggers (pr.yml is
  `pull_request`, release.yml is `workflow_dispatch`).
- setup-node v7 stops exporting the dummy NODE_AUTH_TOKEN placeholder.
  This helps the publish-npm job, which uses OIDC Trusted Publishing —
  the placeholder could previously pollute .npmrc during OIDC publish.
- download-artifact v8 now errors instead of warning on a digest
  mismatch, and skips decompressing non-zip downloads. Our artifacts
  are uploaded with the default `archive: true`, so they still unzip
  normally; the stricter digest check is a straight win.
- cache v6, upload-artifact v7 and the rest of setup-node v7 are ESM
  migrations with no behavioural change for these call sites.

One deliberate behaviour change: setup-uv v9 flips `prune-cache` to
false by default, so the uv cache keeps prebuilt wheels instead of
re-fetching them from PyPI each run. Faster CI at the cost of a larger
cache entry — all jobs share one key (hash of UV_CACHE_GLOB), so this
is a single entry growing, not one per job. Left at the new default;
set `prune-cache: true` if repo cache pressure ever becomes an issue.

Verified: actionlint clean on both workflows, YAML parses.

Claude-Session: https://claude.ai/code/session_01KzBTj2GWBXhG8gbTorDYjW
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: d524237
Status: ✅  Deploy successful!
Preview URL: https://e579adb4.simple-module-python.pages.dev
Branch Preview URL: https://chore-update-gh-actions.simple-module-python.pages.dev

View logs

@antosubash
antosubash marked this pull request as ready for review August 6, 2026 08:46
@antosubash
antosubash merged commit cc9d9bb into main Aug 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant